package com.baizhi.cmfz.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 轮播图
 *
 * @author zhanglh
 * @date 2019/9/11
 */
public class Menu implements Serializable {
    private static final long serialVersionUID = -2073436243620169261L;
    /**
     * 主菜单id
     */
    private Integer menuId;

    /**
     * 主菜单名
     */
    private String menuName;

    /**
     * 主菜单路径
     */

    private String menuUrl;

    /**
     * 子菜单
     */
    private List<Menu> menuList;

    public Menu() {}

    public Integer getMenuId() {return this.menuId;}

    public String getMenuName() {return this.menuName;}

    public String getMenuUrl() {return this.menuUrl;}

    public List<Menu> getMenuList() {return this.menuList;}

    public void setMenuId(Integer menuId) {this.menuId = menuId; }

    public void setMenuName(String menuName) {this.menuName = menuName; }

    public void setMenuUrl(String menuUrl) {this.menuUrl = menuUrl; }

    public void setMenuList(List<Menu> menuList) {this.menuList = menuList; }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Menu)) return false;
        final Menu other = (Menu) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$menuId = this.getMenuId();
        final Object other$menuId = other.getMenuId();
        if (this$menuId == null ? other$menuId != null : !this$menuId.equals(other$menuId)) return false;
        final Object this$menuName = this.getMenuName();
        final Object other$menuName = other.getMenuName();
        if (this$menuName == null ? other$menuName != null : !this$menuName.equals(other$menuName)) return false;
        final Object this$menuUrl = this.getMenuUrl();
        final Object other$menuUrl = other.getMenuUrl();
        if (this$menuUrl == null ? other$menuUrl != null : !this$menuUrl.equals(other$menuUrl)) return false;
        final Object this$menuList = this.getMenuList();
        final Object other$menuList = other.getMenuList();
        if (this$menuList == null ? other$menuList != null : !this$menuList.equals(other$menuList)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {return other instanceof Menu;}

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $menuId = this.getMenuId();
        result = result * PRIME + ($menuId == null ? 43 : $menuId.hashCode());
        final Object $menuName = this.getMenuName();
        result = result * PRIME + ($menuName == null ? 43 : $menuName.hashCode());
        final Object $menuUrl = this.getMenuUrl();
        result = result * PRIME + ($menuUrl == null ? 43 : $menuUrl.hashCode());
        final Object $menuList = this.getMenuList();
        result = result * PRIME + ($menuList == null ? 43 : $menuList.hashCode());
        return result;
    }

    public String toString() {return "Menu(menuId=" + this.getMenuId() + ", menuName=" + this.getMenuName() + ", menuUrl=" + this.getMenuUrl() + ", menuList=" + this.getMenuList() + ")";}
}

